package com.qf.day06.fish;

public class Bird extends Animal{
    private String color;

    public Bird(String color) {
        this.color = color;
    }

    public Bird(String type, int age, String sex, String color) {
        super(type, age, sex);
        this.color = color;
    }

    public String getColor() {
        return color;
    }



    public void setColor(String color) {
        this.color = color;
    }
    public void fly(){
        System.out.println(super.getType()+"正在天空翱翔");
    }
    @Override
    public String toString() {
        return "Bird{" +
                "color='" + color + '\'' +
                "} " + super.toString();
    }
}
